/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.SysRole = (function() {

    /**
     * Properties of a SysRole.
     * @exports ISysRole
     * @interface ISysRole
     * @property {string|null} [uuid] SysRole uuid
     * @property {string|null} [upper] SysRole upper
     * @property {string|null} [validFlag] SysRole validFlag
     * @property {string|null} [creator] SysRole creator
     * @property {string|null} [createTime] SysRole createTime
     * @property {string|null} [creatorIp] SysRole creatorIp
     * @property {string|null} [lastModifier] SysRole lastModifier
     * @property {string|null} [lastModifyTime] SysRole lastModifyTime
     * @property {string|null} [lastModifierIp] SysRole lastModifierIp
     * @property {string|null} [ownerOrganize] SysRole ownerOrganize
     * @property {string|null} [ownerRole] SysRole ownerRole
     * @property {string|null} [serNum] SysRole serNum
     * @property {string|null} [serMemo] SysRole serMemo
     * @property {string|null} [serAudit] SysRole serAudit
     * @property {string|null} [serUsing] SysRole serUsing
     * @property {string|null} [serLabels] SysRole serLabels
     * @property {string|null} [serCode] SysRole serCode
     * @property {string|null} [serName] SysRole serName
     */

    /**
     * Constructs a new SysRole.
     * @exports SysRole
     * @classdesc Represents a SysRole.
     * @implements ISysRole
     * @constructor
     * @param {ISysRole=} [properties] Properties to set
     */
    function SysRole(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * SysRole uuid.
     * @member {string} uuid
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.uuid = "";

    /**
     * SysRole upper.
     * @member {string} upper
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.upper = "";

    /**
     * SysRole validFlag.
     * @member {string} validFlag
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.validFlag = "";

    /**
     * SysRole creator.
     * @member {string} creator
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.creator = "";

    /**
     * SysRole createTime.
     * @member {string} createTime
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.createTime = "";

    /**
     * SysRole creatorIp.
     * @member {string} creatorIp
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.creatorIp = "";

    /**
     * SysRole lastModifier.
     * @member {string} lastModifier
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.lastModifier = "";

    /**
     * SysRole lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.lastModifyTime = "";

    /**
     * SysRole lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.lastModifierIp = "";

    /**
     * SysRole ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.ownerOrganize = "";

    /**
     * SysRole ownerRole.
     * @member {string} ownerRole
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.ownerRole = "";

    /**
     * SysRole serNum.
     * @member {string} serNum
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serNum = "";

    /**
     * SysRole serMemo.
     * @member {string} serMemo
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serMemo = "";

    /**
     * SysRole serAudit.
     * @member {string} serAudit
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serAudit = "";

    /**
     * SysRole serUsing.
     * @member {string} serUsing
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serUsing = "";

    /**
     * SysRole serLabels.
     * @member {string} serLabels
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serLabels = "";

    /**
     * SysRole serCode.
     * @member {string} serCode
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serCode = "";

    /**
     * SysRole serName.
     * @member {string} serName
     * @memberof SysRole
     * @instance
     */
    SysRole.prototype.serName = "";

    /**
     * Creates a new SysRole instance using the specified properties.
     * @function create
     * @memberof SysRole
     * @static
     * @param {ISysRole=} [properties] Properties to set
     * @returns {SysRole} SysRole instance
     */
    SysRole.create = function create(properties) {
        return new SysRole(properties);
    };

    /**
     * Encodes the specified SysRole message. Does not implicitly {@link SysRole.verify|verify} messages.
     * @function encode
     * @memberof SysRole
     * @static
     * @param {ISysRole} message SysRole message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRole.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.serCode != null && message.hasOwnProperty("serCode"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.serCode);
        if (message.serName != null && message.hasOwnProperty("serName"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.serName);
        return writer;
    };

    /**
     * Encodes the specified SysRole message, length delimited. Does not implicitly {@link SysRole.verify|verify} messages.
     * @function encodeDelimited
     * @memberof SysRole
     * @static
     * @param {ISysRole} message SysRole message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRole.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a SysRole message from the specified reader or buffer.
     * @function decode
     * @memberof SysRole
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {SysRole} SysRole
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRole.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SysRole();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                message.serCode = reader.string();
                break;
                case 18:
                    message.serName = reader.string();
                    break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a SysRole message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof SysRole
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {SysRole} SysRole
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRole.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a SysRole message.
     * @function verify
     * @memberof SysRole
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    SysRole.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.serCode != null && message.hasOwnProperty("serCode"))
            if (!$util.isString(message.serCode))
                return "serCode: string expected";
        if (message.serName != null && message.hasOwnProperty("serName"))
            if (!$util.isString(message.serName))
                return "serName: string expected";
        return null;
    };

    /**
     * Creates a SysRole message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof SysRole
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {SysRole} SysRole
     */
    SysRole.fromObject = function fromObject(object) {
        if (object instanceof $root.SysRole)
            return object;
        var message = new $root.SysRole();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.serCode != null)
            message.serCode = String(object.serCode);
        if (object.serName != null)
            message.serName = String(object.serName);
        return message;
    };

    /**
     * Creates a plain object from a SysRole message. Also converts values to other types if specified.
     * @function toObject
     * @memberof SysRole
     * @static
     * @param {SysRole} message SysRole
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    SysRole.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.serCode = "";
            object.serName = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.serCode != null && message.hasOwnProperty("serCode"))
            object.serCode = message.serCode;
        if (message.serName != null && message.hasOwnProperty("serName"))
            object.serName = message.serName;
        return object;
    };

    /**
     * Converts this SysRole to JSON.
     * @function toJSON
     * @memberof SysRole
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    SysRole.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return SysRole;
})();

$root.SysRoleCondition = (function() {

    /**
     * Properties of a SysRoleCondition.
     * @exports ISysRoleCondition
     * @interface ISysRoleCondition
     * @property {string|null} [uuid] SysRoleCondition uuid
     * @property {string|null} [upper] SysRoleCondition upper
     * @property {string|null} [validFlag] SysRoleCondition validFlag
     * @property {string|null} [creator] SysRoleCondition creator
     * @property {string|null} [createTime] SysRoleCondition createTime
     * @property {string|null} [creatorIp] SysRoleCondition creatorIp
     * @property {string|null} [lastModifier] SysRoleCondition lastModifier
     * @property {string|null} [lastModifyTime] SysRoleCondition lastModifyTime
     * @property {string|null} [lastModifierIp] SysRoleCondition lastModifierIp
     * @property {string|null} [ownerOrganize] SysRoleCondition ownerOrganize
     * @property {string|null} [ownerRole] SysRoleCondition ownerRole
     * @property {string|null} [serNum] SysRoleCondition serNum
     * @property {string|null} [serMemo] SysRoleCondition serMemo
     * @property {string|null} [serAudit] SysRoleCondition serAudit
     * @property {string|null} [serUsing] SysRoleCondition serUsing
     * @property {string|null} [serLabels] SysRoleCondition serLabels
     * @property {Array.<string>|null} [uuidList] SysRoleCondition uuidList
     * @property {string|null} [createTimeOUTSET] SysRoleCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] SysRoleCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] SysRoleCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] SysRoleCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] SysRoleCondition serAuditList
     * @property {string|null} [serName] SysRoleCondition serName
     */

    /**
     * Constructs a new SysRoleCondition.
     * @exports SysRoleCondition
     * @classdesc Represents a SysRoleCondition.
     * @implements ISysRoleCondition
     * @constructor
     * @param {ISysRoleCondition=} [properties] Properties to set
     */
    function SysRoleCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * SysRoleCondition uuid.
     * @member {string} uuid
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.uuid = "";

    /**
     * SysRoleCondition upper.
     * @member {string} upper
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.upper = "";

    /**
     * SysRoleCondition validFlag.
     * @member {string} validFlag
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.validFlag = "";

    /**
     * SysRoleCondition creator.
     * @member {string} creator
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.creator = "";

    /**
     * SysRoleCondition createTime.
     * @member {string} createTime
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.createTime = "";

    /**
     * SysRoleCondition creatorIp.
     * @member {string} creatorIp
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.creatorIp = "";

    /**
     * SysRoleCondition lastModifier.
     * @member {string} lastModifier
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.lastModifier = "";

    /**
     * SysRoleCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.lastModifyTime = "";

    /**
     * SysRoleCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.lastModifierIp = "";

    /**
     * SysRoleCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.ownerOrganize = "";

    /**
     * SysRoleCondition ownerRole.
     * @member {string} ownerRole
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.ownerRole = "";

    /**
     * SysRoleCondition serNum.
     * @member {string} serNum
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serNum = "";

    /**
     * SysRoleCondition serMemo.
     * @member {string} serMemo
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serMemo = "";

    /**
     * SysRoleCondition serAudit.
     * @member {string} serAudit
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serAudit = "";

    /**
     * SysRoleCondition serUsing.
     * @member {string} serUsing
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serUsing = "";

    /**
     * SysRoleCondition serLabels.
     * @member {string} serLabels
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serLabels = "";

    /**
     * SysRoleCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.uuidList = $util.emptyArray;

    /**
     * SysRoleCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.createTimeOUTSET = "";

    /**
     * SysRoleCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.createTimeFINISH = "";

    /**
     * SysRoleCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * SysRoleCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * SysRoleCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * SysRoleCondition serName.
     * @member {string} serName
     * @memberof SysRoleCondition
     * @instance
     */
    SysRoleCondition.prototype.serName = "";

    /**
     * Creates a new SysRoleCondition instance using the specified properties.
     * @function create
     * @memberof SysRoleCondition
     * @static
     * @param {ISysRoleCondition=} [properties] Properties to set
     * @returns {SysRoleCondition} SysRoleCondition instance
     */
    SysRoleCondition.create = function create(properties) {
        return new SysRoleCondition(properties);
    };

    /**
     * Encodes the specified SysRoleCondition message. Does not implicitly {@link SysRoleCondition.verify|verify} messages.
     * @function encode
     * @memberof SysRoleCondition
     * @static
     * @param {ISysRoleCondition} message SysRoleCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRoleCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        if (message.serName != null && message.hasOwnProperty("serName"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serName);
        return writer;
    };

    /**
     * Encodes the specified SysRoleCondition message, length delimited. Does not implicitly {@link SysRoleCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof SysRoleCondition
     * @static
     * @param {ISysRoleCondition} message SysRoleCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRoleCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a SysRoleCondition message from the specified reader or buffer.
     * @function decode
     * @memberof SysRoleCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {SysRoleCondition} SysRoleCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRoleCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SysRoleCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            case 23:
                message.serName = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a SysRoleCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof SysRoleCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {SysRoleCondition} SysRoleCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRoleCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a SysRoleCondition message.
     * @function verify
     * @memberof SysRoleCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    SysRoleCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        if (message.serName != null && message.hasOwnProperty("serName"))
            if (!$util.isString(message.serName))
                return "serName: string expected";
        return null;
    };

    /**
     * Creates a SysRoleCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof SysRoleCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {SysRoleCondition} SysRoleCondition
     */
    SysRoleCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.SysRoleCondition)
            return object;
        var message = new $root.SysRoleCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".SysRoleCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".SysRoleCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        if (object.serName != null)
            message.serName = String(object.serName);
        return message;
    };

    /**
     * Creates a plain object from a SysRoleCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof SysRoleCondition
     * @static
     * @param {SysRoleCondition} message SysRoleCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    SysRoleCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
            object.serName = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        if (message.serName != null && message.hasOwnProperty("serName"))
            object.serName = message.serName;
        return object;
    };

    /**
     * Converts this SysRoleCondition to JSON.
     * @function toJSON
     * @memberof SysRoleCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    SysRoleCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return SysRoleCondition;
})();

$root.Permissions = (function() {

    /**
     * Properties of a Permissions.
     * @exports IPermissions
     * @interface IPermissions
     * @property {string|null} [uuid] Permissions uuid
     * @property {string|null} [serMemo] Permissions serMemo
     */

    /**
     * Constructs a new Permissions.
     * @exports Permissions
     * @classdesc Represents a Permissions.
     * @implements IPermissions
     * @constructor
     * @param {IPermissions=} [properties] Properties to set
     */
    function Permissions(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * Permissions uuid.
     * @member {string} uuid
     * @memberof Permissions
     * @instance
     */
    Permissions.prototype.uuid = "";

    /**
     * Permissions serMemo.
     * @member {string} serMemo
     * @memberof Permissions
     * @instance
     */
    Permissions.prototype.serMemo = "";

    /**
     * Creates a new Permissions instance using the specified properties.
     * @function create
     * @memberof Permissions
     * @static
     * @param {IPermissions=} [properties] Properties to set
     * @returns {Permissions} Permissions instance
     */
    Permissions.create = function create(properties) {
        return new Permissions(properties);
    };

    /**
     * Encodes the specified Permissions message. Does not implicitly {@link Permissions.verify|verify} messages.
     * @function encode
     * @memberof Permissions
     * @static
     * @param {IPermissions} message Permissions message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    Permissions.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.serMemo);
        return writer;
    };

    /**
     * Encodes the specified Permissions message, length delimited. Does not implicitly {@link Permissions.verify|verify} messages.
     * @function encodeDelimited
     * @memberof Permissions
     * @static
     * @param {IPermissions} message Permissions message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    Permissions.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a Permissions message from the specified reader or buffer.
     * @function decode
     * @memberof Permissions
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {Permissions} Permissions
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    Permissions.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Permissions();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.serMemo = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a Permissions message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof Permissions
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {Permissions} Permissions
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    Permissions.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a Permissions message.
     * @function verify
     * @memberof Permissions
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    Permissions.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        return null;
    };

    /**
     * Creates a Permissions message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof Permissions
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {Permissions} Permissions
     */
    Permissions.fromObject = function fromObject(object) {
        if (object instanceof $root.Permissions)
            return object;
        var message = new $root.Permissions();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        return message;
    };

    /**
     * Creates a plain object from a Permissions message. Also converts values to other types if specified.
     * @function toObject
     * @memberof Permissions
     * @static
     * @param {Permissions} message Permissions
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    Permissions.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.serMemo = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        return object;
    };

    /**
     * Converts this Permissions to JSON.
     * @function toJSON
     * @memberof Permissions
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    Permissions.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return Permissions;
})();

$root.SysRoleMenu = (function() {

    /**
     * Properties of a SysRoleMenu.
     * @exports ISysRoleMenu
     * @interface ISysRoleMenu
     * @property {string|null} [uuid] SysRoleMenu uuid
     * @property {string|null} [upper] SysRoleMenu upper
     * @property {string|null} [validFlag] SysRoleMenu validFlag
     * @property {string|null} [creator] SysRoleMenu creator
     * @property {string|null} [createTime] SysRoleMenu createTime
     * @property {string|null} [creatorIp] SysRoleMenu creatorIp
     * @property {string|null} [lastModifier] SysRoleMenu lastModifier
     * @property {string|null} [lastModifyTime] SysRoleMenu lastModifyTime
     * @property {string|null} [lastModifierIp] SysRoleMenu lastModifierIp
     * @property {string|null} [roleUuid] SysRoleMenu roleUuid
     * @property {string|null} [menuUuid] SysRoleMenu menuUuid
     * @property {Array.<string>|null} [selectMenuUuids] SysRoleMenu selectMenuUuids
     * @property {Array.<string>|null} [unSelectMenuUuids] SysRoleMenu unSelectMenuUuids
     * @property {Array.<IPermissions>|null} [allPermissionUuid] SysRoleMenu allPermissionUuid
     * @property {Array.<string>|null} [selectPermissionUuid] SysRoleMenu selectPermissionUuid
     * @property {Array.<string>|null} [unSelectPermissionUuid] SysRoleMenu unSelectPermissionUuid
     */

    /**
     * Constructs a new SysRoleMenu.
     * @exports SysRoleMenu
     * @classdesc Represents a SysRoleMenu.
     * @implements ISysRoleMenu
     * @constructor
     * @param {ISysRoleMenu=} [properties] Properties to set
     */
    function SysRoleMenu(properties) {
        this.selectMenuUuids = [];
        this.unSelectMenuUuids = [];
        this.allPermissionUuid = [];
        this.selectPermissionUuid = [];
        this.unSelectPermissionUuid = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * SysRoleMenu uuid.
     * @member {string} uuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.uuid = "";

    /**
     * SysRoleMenu upper.
     * @member {string} upper
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.upper = "";

    /**
     * SysRoleMenu validFlag.
     * @member {string} validFlag
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.validFlag = "";

    /**
     * SysRoleMenu creator.
     * @member {string} creator
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.creator = "";

    /**
     * SysRoleMenu createTime.
     * @member {string} createTime
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.createTime = "";

    /**
     * SysRoleMenu creatorIp.
     * @member {string} creatorIp
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.creatorIp = "";

    /**
     * SysRoleMenu lastModifier.
     * @member {string} lastModifier
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.lastModifier = "";

    /**
     * SysRoleMenu lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.lastModifyTime = "";

    /**
     * SysRoleMenu lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.lastModifierIp = "";

    /**
     * SysRoleMenu roleUuid.
     * @member {string} roleUuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.roleUuid = "";

    /**
     * SysRoleMenu menuUuid.
     * @member {string} menuUuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.menuUuid = "";

    /**
     * SysRoleMenu selectMenuUuids.
     * @member {Array.<string>} selectMenuUuids
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.selectMenuUuids = $util.emptyArray;

    /**
     * SysRoleMenu unSelectMenuUuids.
     * @member {Array.<string>} unSelectMenuUuids
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.unSelectMenuUuids = $util.emptyArray;

    /**
     * SysRoleMenu allPermissionUuid.
     * @member {Array.<IPermissions>} allPermissionUuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.allPermissionUuid = $util.emptyArray;

    /**
     * SysRoleMenu selectPermissionUuid.
     * @member {Array.<string>} selectPermissionUuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.selectPermissionUuid = $util.emptyArray;

    /**
     * SysRoleMenu unSelectPermissionUuid.
     * @member {Array.<string>} unSelectPermissionUuid
     * @memberof SysRoleMenu
     * @instance
     */
    SysRoleMenu.prototype.unSelectPermissionUuid = $util.emptyArray;

    /**
     * Creates a new SysRoleMenu instance using the specified properties.
     * @function create
     * @memberof SysRoleMenu
     * @static
     * @param {ISysRoleMenu=} [properties] Properties to set
     * @returns {SysRoleMenu} SysRoleMenu instance
     */
    SysRoleMenu.create = function create(properties) {
        return new SysRoleMenu(properties);
    };

    /**
     * Encodes the specified SysRoleMenu message. Does not implicitly {@link SysRoleMenu.verify|verify} messages.
     * @function encode
     * @memberof SysRoleMenu
     * @static
     * @param {ISysRoleMenu} message SysRoleMenu message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRoleMenu.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.roleUuid != null && message.hasOwnProperty("roleUuid"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.roleUuid);
        if (message.menuUuid != null && message.hasOwnProperty("menuUuid"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.menuUuid);
        if (message.selectMenuUuids != null && message.selectMenuUuids.length)
            for (var i = 0; i < message.selectMenuUuids.length; ++i)
                writer.uint32(/* id 12, wireType 2 =*/98).string(message.selectMenuUuids[i]);
        if (message.unSelectMenuUuids != null && message.unSelectMenuUuids.length)
            for (var i = 0; i < message.unSelectMenuUuids.length; ++i)
                writer.uint32(/* id 14, wireType 2 =*/114).string(message.unSelectMenuUuids[i]);
        if (message.allPermissionUuid != null && message.allPermissionUuid.length)
            for (var i = 0; i < message.allPermissionUuid.length; ++i)
                $root.Permissions.encode(message.allPermissionUuid[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
        if (message.selectPermissionUuid != null && message.selectPermissionUuid.length)
            for (var i = 0; i < message.selectPermissionUuid.length; ++i)
                writer.uint32(/* id 16, wireType 2 =*/130).string(message.selectPermissionUuid[i]);
        if (message.unSelectPermissionUuid != null && message.unSelectPermissionUuid.length)
            for (var i = 0; i < message.unSelectPermissionUuid.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.unSelectPermissionUuid[i]);
        return writer;
    };

    /**
     * Encodes the specified SysRoleMenu message, length delimited. Does not implicitly {@link SysRoleMenu.verify|verify} messages.
     * @function encodeDelimited
     * @memberof SysRoleMenu
     * @static
     * @param {ISysRoleMenu} message SysRoleMenu message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    SysRoleMenu.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a SysRoleMenu message from the specified reader or buffer.
     * @function decode
     * @memberof SysRoleMenu
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {SysRoleMenu} SysRoleMenu
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRoleMenu.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SysRoleMenu();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.roleUuid = reader.string();
                break;
            case 11:
                message.menuUuid = reader.string();
                break;
            case 12:
                if (!(message.selectMenuUuids && message.selectMenuUuids.length))
                    message.selectMenuUuids = [];
                message.selectMenuUuids.push(reader.string());
                break;
            case 14:
                if (!(message.unSelectMenuUuids && message.unSelectMenuUuids.length))
                    message.unSelectMenuUuids = [];
                message.unSelectMenuUuids.push(reader.string());
                break;
            case 15:
                if (!(message.allPermissionUuid && message.allPermissionUuid.length))
                    message.allPermissionUuid = [];
                message.allPermissionUuid.push($root.Permissions.decode(reader, reader.uint32()));
                break;
            case 16:
                if (!(message.selectPermissionUuid && message.selectPermissionUuid.length))
                    message.selectPermissionUuid = [];
                message.selectPermissionUuid.push(reader.string());
                break;
            case 17:
                if (!(message.unSelectPermissionUuid && message.unSelectPermissionUuid.length))
                    message.unSelectPermissionUuid = [];
                message.unSelectPermissionUuid.push(reader.string());
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a SysRoleMenu message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof SysRoleMenu
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {SysRoleMenu} SysRoleMenu
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    SysRoleMenu.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a SysRoleMenu message.
     * @function verify
     * @memberof SysRoleMenu
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    SysRoleMenu.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.roleUuid != null && message.hasOwnProperty("roleUuid"))
            if (!$util.isString(message.roleUuid))
                return "roleUuid: string expected";
        if (message.menuUuid != null && message.hasOwnProperty("menuUuid"))
            if (!$util.isString(message.menuUuid))
                return "menuUuid: string expected";
        if (message.selectMenuUuids != null && message.hasOwnProperty("selectMenuUuids")) {
            if (!Array.isArray(message.selectMenuUuids))
                return "selectMenuUuids: array expected";
            for (var i = 0; i < message.selectMenuUuids.length; ++i)
                if (!$util.isString(message.selectMenuUuids[i]))
                    return "selectMenuUuids: string[] expected";
        }
        if (message.unSelectMenuUuids != null && message.hasOwnProperty("unSelectMenuUuids")) {
            if (!Array.isArray(message.unSelectMenuUuids))
                return "unSelectMenuUuids: array expected";
            for (var i = 0; i < message.unSelectMenuUuids.length; ++i)
                if (!$util.isString(message.unSelectMenuUuids[i]))
                    return "unSelectMenuUuids: string[] expected";
        }
        if (message.allPermissionUuid != null && message.hasOwnProperty("allPermissionUuid")) {
            if (!Array.isArray(message.allPermissionUuid))
                return "allPermissionUuid: array expected";
            for (var i = 0; i < message.allPermissionUuid.length; ++i) {
                var error = $root.Permissions.verify(message.allPermissionUuid[i]);
                if (error)
                    return "allPermissionUuid." + error;
            }
        }
        if (message.selectPermissionUuid != null && message.hasOwnProperty("selectPermissionUuid")) {
            if (!Array.isArray(message.selectPermissionUuid))
                return "selectPermissionUuid: array expected";
            for (var i = 0; i < message.selectPermissionUuid.length; ++i)
                if (!$util.isString(message.selectPermissionUuid[i]))
                    return "selectPermissionUuid: string[] expected";
        }
        if (message.unSelectPermissionUuid != null && message.hasOwnProperty("unSelectPermissionUuid")) {
            if (!Array.isArray(message.unSelectPermissionUuid))
                return "unSelectPermissionUuid: array expected";
            for (var i = 0; i < message.unSelectPermissionUuid.length; ++i)
                if (!$util.isString(message.unSelectPermissionUuid[i]))
                    return "unSelectPermissionUuid: string[] expected";
        }
        return null;
    };

    /**
     * Creates a SysRoleMenu message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof SysRoleMenu
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {SysRoleMenu} SysRoleMenu
     */
    SysRoleMenu.fromObject = function fromObject(object) {
        if (object instanceof $root.SysRoleMenu)
            return object;
        var message = new $root.SysRoleMenu();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.roleUuid != null)
            message.roleUuid = String(object.roleUuid);
        if (object.menuUuid != null)
            message.menuUuid = String(object.menuUuid);
        if (object.selectMenuUuids) {
            if (!Array.isArray(object.selectMenuUuids))
                throw TypeError(".SysRoleMenu.selectMenuUuids: array expected");
            message.selectMenuUuids = [];
            for (var i = 0; i < object.selectMenuUuids.length; ++i)
                message.selectMenuUuids[i] = String(object.selectMenuUuids[i]);
        }
        if (object.unSelectMenuUuids) {
            if (!Array.isArray(object.unSelectMenuUuids))
                throw TypeError(".SysRoleMenu.unSelectMenuUuids: array expected");
            message.unSelectMenuUuids = [];
            for (var i = 0; i < object.unSelectMenuUuids.length; ++i)
                message.unSelectMenuUuids[i] = String(object.unSelectMenuUuids[i]);
        }
        if (object.allPermissionUuid) {
            if (!Array.isArray(object.allPermissionUuid))
                throw TypeError(".SysRoleMenu.allPermissionUuid: array expected");
            message.allPermissionUuid = [];
            for (var i = 0; i < object.allPermissionUuid.length; ++i) {
                if (typeof object.allPermissionUuid[i] !== "object")
                    throw TypeError(".SysRoleMenu.allPermissionUuid: object expected");
                message.allPermissionUuid[i] = $root.Permissions.fromObject(object.allPermissionUuid[i]);
            }
        }
        if (object.selectPermissionUuid) {
            if (!Array.isArray(object.selectPermissionUuid))
                throw TypeError(".SysRoleMenu.selectPermissionUuid: array expected");
            message.selectPermissionUuid = [];
            for (var i = 0; i < object.selectPermissionUuid.length; ++i)
                message.selectPermissionUuid[i] = String(object.selectPermissionUuid[i]);
        }
        if (object.unSelectPermissionUuid) {
            if (!Array.isArray(object.unSelectPermissionUuid))
                throw TypeError(".SysRoleMenu.unSelectPermissionUuid: array expected");
            message.unSelectPermissionUuid = [];
            for (var i = 0; i < object.unSelectPermissionUuid.length; ++i)
                message.unSelectPermissionUuid[i] = String(object.unSelectPermissionUuid[i]);
        }
        return message;
    };

    /**
     * Creates a plain object from a SysRoleMenu message. Also converts values to other types if specified.
     * @function toObject
     * @memberof SysRoleMenu
     * @static
     * @param {SysRoleMenu} message SysRoleMenu
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    SysRoleMenu.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.selectMenuUuids = [];
            object.unSelectMenuUuids = [];
            object.allPermissionUuid = [];
            object.selectPermissionUuid = [];
            object.unSelectPermissionUuid = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.roleUuid = "";
            object.menuUuid = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.roleUuid != null && message.hasOwnProperty("roleUuid"))
            object.roleUuid = message.roleUuid;
        if (message.menuUuid != null && message.hasOwnProperty("menuUuid"))
            object.menuUuid = message.menuUuid;
        if (message.selectMenuUuids && message.selectMenuUuids.length) {
            object.selectMenuUuids = [];
            for (var j = 0; j < message.selectMenuUuids.length; ++j)
                object.selectMenuUuids[j] = message.selectMenuUuids[j];
        }
        if (message.unSelectMenuUuids && message.unSelectMenuUuids.length) {
            object.unSelectMenuUuids = [];
            for (var j = 0; j < message.unSelectMenuUuids.length; ++j)
                object.unSelectMenuUuids[j] = message.unSelectMenuUuids[j];
        }
        if (message.allPermissionUuid && message.allPermissionUuid.length) {
            object.allPermissionUuid = [];
            for (var j = 0; j < message.allPermissionUuid.length; ++j)
                object.allPermissionUuid[j] = $root.Permissions.toObject(message.allPermissionUuid[j], options);
        }
        if (message.selectPermissionUuid && message.selectPermissionUuid.length) {
            object.selectPermissionUuid = [];
            for (var j = 0; j < message.selectPermissionUuid.length; ++j)
                object.selectPermissionUuid[j] = message.selectPermissionUuid[j];
        }
        if (message.unSelectPermissionUuid && message.unSelectPermissionUuid.length) {
            object.unSelectPermissionUuid = [];
            for (var j = 0; j < message.unSelectPermissionUuid.length; ++j)
                object.unSelectPermissionUuid[j] = message.unSelectPermissionUuid[j];
        }
        return object;
    };

    /**
     * Converts this SysRoleMenu to JSON.
     * @function toJSON
     * @memberof SysRoleMenu
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    SysRoleMenu.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return SysRoleMenu;
})();

module.exports = $root;
